//
//  UIBarButtonItem+XLExtension.h
//  DrugProphet
//
//  Created by 左学良 on 16/7/21.
//  Copyright © 2016年 左学良. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIBarButtonItem (XLExtension)

/**
 *  创建一个UIBarButtonItem
 *
 *  @param image     图片名字
 *  @param highImage 高亮图片名字
 *  @param target    target
 *  @param action    响应方法
 *
 *  @return 返回一个UIBarButtonItem
 */
+ (instancetype)itemWithImage:(NSString *)image highImage:(NSString *)highImage target:(id)target action:(SEL)action;


+ (UIBarButtonItem *)itemWithImageName:(NSString *)imageName highImageName:(NSString *)highImageName target:(id)target action:(SEL)action;
- (UIBarButtonItem *)itemInitWithImageName:(NSString *)imageName highImageName:(NSString *)highImageName target:(id)target action:(SEL)action;
+ (UIBarButtonItem *)addTarget:(id)target WithTitle:(NSString *)title withColor:(UIColor *)color action:(SEL)action;
- (UIBarButtonItem *)itemWithTarget:(id)target WithTitle:(NSString *)title withColor:(UIColor *)color action:(SEL)action;
- (UIBarButtonItem *)itemInitWithImageName:(NSString *)imageName withTitle:(NSString *)title  highImageName:(NSString *)highImageName withHighTitle:(NSString *)highTitle target:(id)target action:(SEL)action;
+ (UIBarButtonItem *)itemWithImageName:(NSString *)imageName withTitle:(NSString *)title  highImageName:(NSString *)highImageName withHighTitle:(NSString *)highTitle target:(id)target action:(SEL)action;

@end
